use std::thread;
use std::time::SystemTime;
use std::time::Duration;
use std::time::UNIX_EPOCH;


pub fn get_current_time() -> i64 {
    // let now = chrono::Local::now();
    // now.format("%Y-%m-%d %H:%M:%S").to_string()

    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .unwrap()
        .as_secs() as i64
}

pub fn sleep(seconds: i64) {
    thread::sleep(Duration::from_secs(seconds as u64));
}